import request from '@/utils/request'
import type { AxiosPromise } from 'axios'
import type { GoodsBannerQuery, GoodsBannerVO } from '@/api/home/goodsBanner/types.ts'

/**
 * 查询商品轮播图列表
 * @param query
 * @returns {*}
 */

export const getGoodsBannerApi = (query?: GoodsBannerQuery): AxiosPromise<GoodsBannerVO[]> => {
  return request({
    url: '/api/goods/banner/list',
    method: 'get',
    params: query
  })
}
